package com.example.birdfriends.pojo.follow;

import org.apache.ibatis.type.Alias;

import java.sql.Timestamp;

@Alias("follower")
public class Follower {
    // 关注表
    private Long fid;
    private Long followUid;  // 当前关注者的id
    private Long followedUid;  // 当前被关注者的id
    private Timestamp followTime;  //关注时间

    public void printFollow() {
        System.out.println("Follower{" +
                "fid=" + fid +
                ", currentUid=" + followUid +
                ", followedId=" + followedUid +
                ", followTime=" + followTime +
                '}');
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public void setFollowUid(Long followUid) {
        this.followUid = followUid;
    }

    public void setFollowedId(Long followedId) {
        this.followedUid = followedId;
    }

    public void setFollowTime(Timestamp followTime) {
        this.followTime = followTime;
    }

    public Long getFid() {
        return fid;
    }

    public Long getFollowUid() {
        return followUid;
    }

    public Long getFollowedId() {
        return followedUid;
    }

    public Timestamp getFollowTime() {
        return followTime;
    }
}
